/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiPaginationButton {
  font-size: $ouiFontSizeS;
  padding: 0;
  text-align: center;
  border-radius: $ouiBorderRadius;
}

.ouiPaginationButton-isActive {
  font-weight: $ouiFontWeightBold;

  &#{&} {
    color: $ouiColorPrimary;

    .ouiButtonEmpty__content {
      cursor: default;
    }

    &,
    &:hover {
      text-decoration: underline;
    }
  }
}

.ouiPaginationButton-isPlaceholder {
  align-items: baseline;
  color: $ouiButtonColorDisabledText;
  font-size: $ouiFontSizeS;
  padding: 0 $ouiSizeS;
  height: $ouiSizeL;
  padding-top: calc($ouiSizeM / 2);
}

@include ouiBreakpoint('xs', 's') {
  .ouiPaginationButton-isPlaceholder,
  .ouiPaginationButton--hideOnMobile {
    display: none;
  }
}
